package com.skywolf.chem.usercenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.skywolf.chem.usercenter.entity.Role;
import com.skywolf.chem.usercenter.entity.UserRole;
import com.skywolf.chem.usercenter.pojo.param.UserRoleParam;

import java.util.List;

/**
 * <p>
 * 系统用户和角色关系表 服务类
 * </p>
 *
 * @author
 * @since 2019-12-03
 */
public interface IUserRoleService extends IService<UserRole> {

    void saveUserRole(UserRoleParam userRoleParam);

    List<Role> listUserRole(Long userId);

    boolean isSuperAdmin(Long userId);
}
